
<fieldset>
			<h3>Form Pemesanan Email</h3><hr />
			<form id="form_kirim" action="<?=base_url()?>backend/simpan/tbl_pesan_email" method="post">
			<input type="hidden" name="sts" id="sts" value="add"/>
			<input type="hidden" name="id" id="id" value=""/>
			<input type="hidden" name="tbl_produk_id" id="tbl_produk_id" value="<?=$produk->id;?>"/>
			<label style="width:150px; display:inline-block;"><b>Nama Produk</b></label>  : <b><?=$produk->nama_produk;?></b><br>
			<label style="width:150px; display:inline-block;"><b>Nama Toko</b></label>  : <b><?=$produk->nama_toko;?></b><br>
			<label style="width:150px; display:inline-block;"><b>Nama Reseller</b></label>  : <b><?=$produk->nama_lengkap;?></b><br>
			<label style="width:150px; display:inline-block"><b>Nama Lengkap</b></label>  :  <input type="text" name="nama" id="nama" style="width:246px;" value="" class="easyui-validatebox text_na" placeholder="Isi Nama Lengkap Anda" /><br>
			<label style="width:150px; display:inline-block"><b>Alamat</b></label> : <input type="text" name="alamat" id="alamat" style="width:246px;" value="" class="easyui-validatebox text_na" placeholder="Isi Alamat Lengkap Anda" /><br />
			<label style="width:150px; display:inline-block"><b>Telp</b></label> : <input type="text" name="telp" id="telp" style="width:246px;" value="" class="text_na" placeholder="Isi No Telp Jika Ada" /><br />
			<label style="width:150px; display:inline-block"><b>HP</b></label> : <input type="text" name="hp" id="hp" style="width:246px;" value="" class="easyui-validatebox text_na" placeholder="Isi No Handphone Anda" /><br />
			<label style="width:150px; display:inline-block"><b>Email</b></label> : <input type="text" name="email" id="email" style="width:246px;" value="" class="easyui-validatebox easyui-validatemail text_na" placeholder="Isi Email Anda" /><br />
			<label style="width:150px; display:inline-block"><b>Jumlah</b></label> : <input type="text" name="jml" id="jml" style="width:50px;" value="" class="easyui-validatebox text_na" placeholder="Jumlah Yang Akan Dipesan" /><br /><br />
			<label style="width:150px; display:inline-block"><b>Komentar</b></label> : <textarea name="comment" id="comment" style="width:250px;" value="" class="easyui-validatebox text_na" placeholder="Komentar Mengenai Pemesanan" /><br /><br />
			
			<a id="send_mail" href="#" style="float:right"><span id="nm_simpan">Kirim Sekarang</span></a>
			
			</form>
		</fieldset>
		
<script>
$(".easyui-validatebox").validatebox({required:true } );
$(".easyui-validatemail").validatebox({required:true,validType:'email'}); 
$('#send_mail').linkbutton({  
	iconCls: 'send_na'  
});
$('#jml').numberbox({  
     min:0,  
     precision:0  
});  

$('#send_mail').bind('click',function(){  
	if($('#form_kirim').form('validate')){
		
		submitform('form_kirim',function(r){
			if(r==1){
				 $.messager.alert('Pemesanan Email','Terima Kasih. \n Pemesanan Anda Telah Terkirim \n Kami Akan Menindak Lanjutinya ','info');
				mywindow_close();
			}
			else{
				alert(r);
			}
		});
	}
});


	
</script>